import type { RouteRecordRaw } from "vue-router"
const Layouts = () => import("@/layouts/index.vue")

export const ofdRouters: RouteRecordRaw[] = [
  {
    path: "/ofd",
    component: Layouts,
    meta: {
      title: "点餐",
      elIcon: "Notebook"
    },
    children: [
      {
        path: "ofdcategory",
        component: () => import("@/pages/ofd/OfdCategory.vue"),
        name: "OfdCategory",
        meta: {
          title: "食品分类",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "ofdcategoryfood",
        component: () => import("@/pages/ofd/OfdCategoryFood.vue"),
        name: "OfdCategoryFood",
        meta: {
          title: "类别食品关联",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "ofdcomment",
        component: () => import("@/pages/ofd/OfdComment.vue"),
        name: "OfdComment",
        meta: {
          title: "评论",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "ofddynamicgroup",
        component: () => import("@/pages/ofd/OfdDynamicGroup.vue"),
        name: "OfdDynamicGroup",
        meta: {
          title: "动态分组",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "ofddynamicgroupfood",
        component: () => import("@/pages/ofd/OfdDynamicGroupFood.vue"),
        name: "OfdDynamicGroupFood",
        meta: {
          title: "动态分组与食品关联",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "ofdfooddata",
        component: () => import("@/pages/ofd/OfdFoodData.vue"),
        name: "OfdFoodData",
        meta: {
          title: "食品动态数据",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "ofdfoodsku",
        component: () => import("@/pages/ofd/OfdFoodSku.vue"),
        name: "OfdFoodSku",
        meta: {
          title: "食品SKU",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "ofdfoodskuoption",
        component: () => import("@/pages/ofd/OfdFoodSkuOption.vue"),
        name: "OfdFoodSkuOption",
        meta: {
          title: "食品选项",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "ofdfoodspu",
        component: () => import("@/pages/ofd/OfdFoodSpu.vue"),
        name: "OfdFoodSpu",
        meta: {
          title: "食品SPU",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "ofdorder",
        component: () => import("@/pages/ofd/OfdOrder.vue"),
        name: "OfdOrder",
        meta: {
          title: "订单",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "ofdordercustomer",
        component: () => import("@/pages/ofd/OfdOrderCustomer.vue"),
        name: "OfdOrderCustomer",
        meta: {
          title: "订单与消费者关联",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "ofdorderfood",
        component: () => import("@/pages/ofd/OfdOrderFood.vue"),
        name: "OfdOrderFood",
        meta: {
          title: "订单商品",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "ofdpackage",
        component: () => import("@/pages/ofd/OfdPackage.vue"),
        name: "OfdPackage",
        meta: {
          title: "套餐",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "ofdpackagefood",
        component: () => import("@/pages/ofd/OfdPackageFood.vue"),
        name: "OfdPackageFood",
        meta: {
          title: "套餐与食品关联",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "ofdtable",
        component: () => import("@/pages/ofd/OfdTable.vue"),
        name: "OfdTable",
        meta: {
          title: "桌位",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "ofdtabledynamic",
        component: () => import("@/pages/ofd/OfdTableDynamic.vue"),
        name: "OfdTableDynamic",
        meta: {
          title: "桌位动态数据",
          elIcon: "List",
          keepAlive: true
        }
      },
      {
        path: "ofdtableorder",
        component: () => import("@/pages/ofd/OfdTableOrder.vue"),
        name: "OfdTableOrder",
        meta: {
          title: "桌位与订单关联",
          elIcon: "List",
          keepAlive: true
        }
      },
    ]

  }
]
